﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Security;
using GameSchool.Models;
using GameSchool.Models.Interfaces;


namespace GameSchoolTests
{
    class MockLectureRepository : ILectureRepository
    {

        List<Lecture> m_lectureItems = new List<Lecture>();

        public MockLectureRepository(int count)
        {
            for (int i = 0; i < count; i++)
            {
                m_lectureItems.Add(new Lecture { ID = i + 1, VideoLink="none", Title = "Fyrirlestur " + (i + 1), Descr="Lýsing", DatePub = DateTime.Now.AddDays(i), MaxPoints=(i+1), MaxBonusPoints=(i+1) });
            } 
        }

        public IQueryable<Lecture> GetLectures()
        {
            return m_lectureItems.AsQueryable();
        }

        public void AddLecture(Lecture l)
        {
            throw new NotImplementedException();
        }

        public Lecture GetLectureByID(int? lID)
        {
            throw new NotImplementedException();
        }

        public void DeleteLecture(int? lID)
        {
            throw new NotImplementedException();
        }

        public void Save()
        {
            throw new NotImplementedException();
        }
    }
}
